naming anonymous functions

for better stack traces