set cred->flags from usage before testing