begin adding attach code to IDE