check if required packages are installed