updated logger to clear segfault