framework for snake