streaming api working in a weird way