addressing an error i do not understand
moved logging config outside the main function, since something was
unhappy about that