change ByteString comparison to constant time function
clean up warnings