fixed exports api macro