changed streamopen to streambind