updated to new versions of ar and dm