fix removing dash from xfields, add docs