additional changes to flowmax.py