fixes logging improvements