reviewed port_directory.table generation