added a bunch of timeouts to prevent crashes on mac when uploading while serial console is open