add function to temporarily install packages