add set/get attribute

why not just `set()` and `get()`?