fix a lot of bugs
improve AK functionnality