better command output handling.