add import method, supporting batch mode