moved logging init to main() (?)