import core code (incomplete)