improves binary parsing; still not thoroughly tested
update parsing tests