disable attachment rewriting