fix multiple redirections

Fixes #15.

\- Felix