updated script to install package if not there