added loggingEnabled property to see debug logs if desired