switch to using json instead of ls for compatibility