adding support for virtual prismatic and revolute joints