added sx detection