inner class getters need to be public

for same reason that these classes must be public (see last commit)