added some logging and initialization process