rewrite for Binary Editor BZ