update for newer ruby