adding debug option flag