added state machine to user_import_file