fix improper export macro usage