added ExtendedPainId management
added ExtendedPainId management