bloken heredoc logic fix