add getHeaders method
clean up
almost there