move things to exports for testing's sake