added some functions and variables I found to work
debugging
debugging