added custom template folder option