replacing deprecated get() & set() calls. see issue #252