don't write to static pointers; patch from Anthony