add template and some config options