expect flag work