fix a logging typo
add support for dotenv