started flask stuff, prototyped logic stuff