added the beginnings of a fractional grid solution, plus an xray helper