switch to java 1.6 compat