adding a script to sync proxy with master - sorting