put main in ProcessManager