included top argument to serial for the gui progress bar