move id extraction into mop::util
implement class FINALIZE