added exit status messages to check if the command found matches