udpate ik to last version,made mode selectable