added possibility to specify the Process class