bugifixes (wasnt propertly NULLing list), added agent field in extended record;