improve CLI import API