attachment cleanups