added a little more detailed logging