kmotion copy from kmotion v2 and v3 SVN