hey guys thanks for your replies...
something I should've metioned before is that I still use A6 standard version which does not support bones.
but thanks if someday I upgrade to a higher version, the bones detection code will be surely put in use

does anyone has any other idea of how I could achieve this with my a6 standard version?