detects last added port