removed some warnings; java 7 is now required