added Xstroke support