rules & custom scripts: include q and xtend