added debug flasg by default and comment