[enh] indexing agents by type
[enh] optimizations
[enh] argument parsing added