changed openStream v1