WIP - fix heredoc pipe