install_agent sys argument indexing corrected