added debug flag
debug flag