in reply to IPC/Expect w/o modules

Any particular reason why you don't want to use modules? As a general rule of thumb you'll find that using modules instead of reinventing the wheel is generally considered a good thing :-)

-- vek --