comport main method changes