added function parameter support for closure type slots