Debug checks added

makes working on the code in the editor easier