use string-to-number rather than parse-integer
clean up squeze-control-refresh

handle accepting process output in a separate function