logger can work now, need update and safety validate