added package-search and updated update() function to cater for it.