added openProcess routine