more resiliency changes to server4.js