adding install packages helper function