update to pure flask in master branch