middle ware startup