ports parsing OK; need to do more test cases though