misc bugfixes; new param "PC_COUNT"