ported to spark short of replacing bit write