turned the looger to a gen_server