starting middleware system