updating to work with Java 8 runtime