fix to run it under java 8 / nashorn