added list ports code