auto-tail (fixes #47)