upgrade and clean up gems