sending output on success to stdout