update gems, add guard