fix cli port parsing