added more useful logging