added config option for custom template path