add some crude validation
more thorough validation of streams