provide swac as a middleware instead of a server itself