add ImportService to import data
remove duplicate code