sink status output to file, fixed output mode check