debug sdk, refactor, fixes
implement etag uid logic
implement value restore logic