added logging and changed cluster reset