halfway done with binary parsing