parse port declaration correctly
solve conflict