got my head around how to set text/html content types etc