path issues with templates