micro impl of php proxy