proper error handling, proper streams2 ending