changed EnumMap usage to HashMap as kryo has problems with enummap