implementing library export/import