added host total calculation. it's not switching endianness anymore!