added more logging to checkbehavior
added more logging to logdb