add some debug messages and make the Handlers working