added debug msgs