add attr_accessible, only write if present