add code to take incoming headers