public String waitfor( String[] searchElements ) throws IOException {
ScriptHandler[] handlers = new ScriptHandler[searchElements.length];
for ( int i = 0; i < searchElements.length; i++ ) {
// initialize the handlers
handlers[i] = new ScriptHandler();
handlers[i].setup( searchElements[i] );
}
byte[] b1 = new byte[1];
int n = 0;