conditionally run xset