added template meta, changed return of getFile