tempates compile into correct directory