fix compilation err of ProviderDelegate, remove some unused code
fix logger class loading errors