more things with less lines of code in template acquisition