added "cat" mode