support lambdas

@amw does this look good ?
I'll try processes next ...