changed dsets to datasets and fixed json parse