added a new constructor for withuuid