refactored import/export to take adjustable bounds