fixed up some agent things