guard logging too