template directory copy