fixing alternate remote php bug