fix main logging output