removed unnecessary check for the gag, now that one-way is trivially detectable