remove loop around template
cron job needs to support name based virtual hosting