run through heredoc code