refactor the fellowmem controller and the backend controller