added a 'safe' section where regenerated code will retain