update to latest Plm codes