apply suggested fix from upstream to ignore SIGPIPE
adapt to deploying on data.local