use path option instead of root