add env and dev switch