It was the 8 bit shift on a uint8 that wasn't working. Now we are getting somewheres