more code refactoring for import members csv and specs