marcin's comar.py