can set template dir in an option