move logging setup