added early dotenv loading