add logging for debugging; fix resultType; utilize get() on template call.