added some convenience logging