add get data routine
fix for last changes in CPL