Minor fix to portsetup

It is till in a testphase.