simplified response decode functionality