assigning uuid to each terminal