FIX: csd works now, with correct input