first cut at a dedicated pcd reader/writer