updates for latest SDK
using shared docs code