buncha updates to flask stuff