restruct program and use real multi process mode