add output error + record all commands from user