changed serialization to use memcpy, still does not work, failure command in return only