change the PyCAL api