updated php handler