add a magic code to the slice, make sure that the backend program will ignore invalid messages