added template
added config structure