change argument handling
add CouchFSDocument mode