cheat format improved, added single line heredoc, improved redirection