put logger back in main