finished implementation of types import