return headers as per davidbgk's pull request