install and load packages using LoadPackages function