updating to require at least Java 7