added ExtendedPainId management