refactored likely_environment to support sharing scope