add if_err option for cat OutPut
add if_err option