updated util/sender to test for success