more flexible partition setup for scripted export