custom class doesn't crash anymore
attrs