everything works except card refresh