added temp host param; tweaked
updated template