add handling of access modifiers on properties

fixes #137