add direct lambda support