minor changes to coesa.py