adding debug mode!