piping errors to other places
Fixes issue #40