adding support for css3 tranforms and moving around some variables