working on api /stream/{name}.