autodetect protected properties