trying to implement templating and action composition