add support for java 6