the backend for rSpark