added header validation to genGet