add some xslate macros, to make things a bit cleaner