switched back to old scoping and exporting API