should add call to markinvalid again we keep accidentally deleting it