added logger
corrected previous mistake
configuration