support for named functions