updated version of patch compatible with git head of 140608,(adjusted proc oid and a couple of minor fixes)