added flask for data usage