refactored bootstrap reload code to eliminate segv