Fix date issue, serialization,  error codes, sync key