have card detection working