make connector_for_os public and use it in environment_manager