debug for raw access