update gems and code