fix logger and config bugs