remove ivar references in favor of attr_readers where appropriate