started work on Flask stuff for http requests. not really sure what I'm doing