Exports scoping issue in process