compare.py: added different modes