refactor system detection, add sse detection