added hex-string serilization