distinguish output path and root path