fixed config initialization and logging setup