auto decode response