added some debug log