wait for serial