ensure java6 compat