refactor sse support in system