move set uuid and token out to their own functions and go back to creating a variable for sid, felt odd printing it out of the buffer