prints with the proper headers