added customizable template directory