improve logger module