handle more cases parse.py