ENH: made API export work beautifully