convert to eexpect