major fix for abstract port management