split import into an action, so that it can show the progress nicer