fixed ntp and heredoc terminator