formatting and exit codes