took out gatherproxy, added header check