working on end of template, something related to async broken