moved exports def to top