add support for closures as default value