add common fun; add config.ftl