convert from _attachment to binary
improve binary removal rules