Changed esb to automatically rebuild slave if needed