trying to install required packages if not installed