moved all handlers to a module
reorganized the logging a bit