adding name and sql to debugging