update phd init script