added streaming support; fixes #2; ready event only on success