add example, bugfix for the util.substitute