fixed up agent plugin auto deploy