added err_fn to PathRole