added custom logger