added logging of success error messages