some pcie tweaks to portal.cpp