to modify log.py