done with debug hooks, errorception implemented