optimize sysset.sh code