fixed mixup with portareadwrite