update gems and cleanup