replaced all template vars with the real locations