remove cf-ps and headers