logs headers too