implement simple get/set