added quantization to support spumux