fix logger, add logger call