fix token infinite loop; kill existing processes in install script