trying to get the default domain working
yet another attempt
fixed the minor issues which prevented the template rendering