reworked with regexes, nested invocations but just single param