better support for parametrized functions