more flask stuff...going to be trickier  than I thought because flask doesn't pass around the request object like the other two frameworks