chaned addLog to use static handle