added some debug begins