added exports to closure function