removed old code, added error message when trying to create stream and it fails