memoryhandler doesnt work as expected, so use a consolehandler