repair the cat command