fixed binary parsing, heavy debug output is still present