added redundancy (not tested). changed binary parsing.