added support for {\d} parameters