fix bugs in data and model stage and start import and export stages