changed to a python script, since arduino has auto reset it waits after opening the connection.