fix logging and config