established enviroment detection