change backend endpoint to string