added quant + some bugfixes