added php mode