added jdk 8 lambda support