doc
use constant instead of hardcoded value
stream types are strings instead of symbols