replacing deprecated get() calls. see issue #242