add compatibility with protected_attributes