scard: changed the way we store and pass context