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