better thread test, logger broken on threads even with mutex added need to figure out how to fix it
threading better but still broken