support for java 6