update packages & remove unused packages