fix environment and log level