start of flask