more work in cl interface and working index creation query