backup of old parser.py