add metadata and exports