fix readEnv