fixed patch code so it actually patches binary, and fixed the binary so
the const is actually reset,  i had to make it not a const to do that i
think gcc was optimizing my problem too much.