add support of options for dataset stream
do not emit error too early
fix empty options
update example