much cleaner debugging using debug, middleware isolation