changed main, return static for some methods in ParallelMain