added dotenv middleware