support of different DOFs of arm; need fix for multiple arms