allow passing in headers from handle function