almost there

todo: cleaning
perf enhancing

hook to XTK rest, integrate reslice on demand