added in wind-swap and ats-mode.el