improve livestream type check