added some debug info, added sleep to make it easier to see this in processlist