Add api.export 

with compatibility :shipit: