add special support for closures to _pr