return boolean from waitFor