added support for opaque data
sample app updates