updates for shop2, migration to flask