added debuglogs