bugfixes, cosmetic fixes
protocol must be declared before ports
added commit at the end of each table