continuing work on debug log
adding bug fixes
adding bug fixes