handle better pre version 7 jvms