added back protected_attributes functionality
rspec runs with no failures