add tmp variable
optimize configurations
remove xptemplate