added a few more logging statements