making export more mockable