configured startup class again and injected ILoggerFactory