added logger to be able to switchoff the debug messages