updated loading of packages and data