support for java6