adds headers to output