convert to expect syntax