speedup in getattr, thanks Michele