added old php mode