put handler for /stream