crack at moving persistent_environment to dictionary manager