added custom logger for future use, for now lets have an option ti disbale it