slight template change and default location setting