move logging setup into main