add csd reading support