pulled functions out of exports