updating core and refactored the debugging command API