split exports and functions into individual file