fix external exports