add local copy of compensators.py