reverting debug changes and adding some debug console logs for testing conversion process