adding debug option