replaced the credit card scan lib and fixed some bugs