add param handling in example es.py