fix issue #8 and support import from scalar