add callback option to use with the _template call