integrated my api_utils gem; updated card model