rewrite bomstrip, added '-a' option