make deriveGenericRest useful