changed skin/joint detection, allows more flexible skin layout