modify main process mode