cdp parser functions - outdated (already in main)