old debug stub