fixed port lookup issue