readability + convenience edits for xfm to idx