fixes for env config