using cid only on client side