switch process element thingies to lambdas