get env type