cleanup
changed free attach methode again