update to resetsynergy.sh to work more better.