cleaned up env config loading