edit doc
validate args
change file path to resolved path