some utility functions
Merge branch 'master' of https://github.com/agrbin/streamer