modified cardonfile function calls for the 2.x-beta1 version of cardonfile