Stream serializer helpers.
import functions. need a fix. move code to begin of a function.
hm....