environment is DEPRECATED! Please use local_environment and remote_environment