add stream token interface to public API