formatting, last command, and return codes