deleted agent code, improved futures code