make class accessors return sane types
(temp commit): wip making stuff more type-safe