fixing class feature access bug: only considering public attributes now