changing a remote file call to a template call