logger, webrequest semaphore, restructure