snake backend