apparently i wrote some agent code a while back...