use the built-in set and get functions rather than accessing the `attrs` object directly