fixes to portfiles