added openProcess constructor