server discard functionality