added svgCheck directive