using spawn instead of exec; only one capture process at a time; v.0.1.0