this should be done by the uuid middleware.