[IMP]move compatibility code.