cpp is a bitch, got to copy the serial into an integer