adding log stuff to track failures