refactored exports, now with config options