added attach stuff
Merge pull request #2 from ljwolford/1.0attach

added attach stuff