raise exception of return code != 0
added reporting