blerg, I forgot that `val` makes the constructor argument a class field.