set up the backend