added function to check for installed packages