clean up the backend