added legacy import code