handle headers on request object