replacing deprecated get() and set() calls. closes #286