linked together old gse.py and csp