template files copy to temp dir first