implement rel/abs_tolerance, --skip-run, bugfix for mask