cat implementation in moc