adding debug system