use - in command
add Document save in pipeline to avoid dumping to json
test for issue #9