draft for flaskbb 3 and 4