added commandline flag -i to indicate reimport data