move exports function to resolver