optimize get/set sx functions

You made them work, i break them again ;)