all the if-... headers and started implementing php support