add temporary debug func