added some code to enable logger