changed card handling for server/client