clean up and upgrade package versions