code for tutorial run through
initial steps toward attching a process