reworked the bone part a little and added some extra features (it's still backwards compatible)