first step at #129
do not override planid if it has been restored from instance state