CD-5 script fixes for port number