flask setup for CBE