more robust support for exporting variables from user-data