fix in usage of ports from config script