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