add resume support
add file root option