added -Djava.util.Arrays.useLegacyMergeSort=true to stop errors when using java 1.7