improved efficiency of git hub card refresh method