fixed some logging to aid in debugging