implemented port command