make it work on windows + change json format