workign on this ls to json to and associated index template