added trace logging to aid in diagnosing thread blocking issues