updated method for installing dependancy packages