remove dependency of xtemplate. Fixes #3