parity bugfixes implemented