#1 adding debug flag