retry works with stdin. fixes #18