using template dir to make life easier