fix errors & improve a bit the ida scripts