working on the debug engine