adds new gems, deletes unused ones