added direction field to cat-struct