improve some bits of code, manage salt-syndic