changing use of exports in api files