better json parsing and more commands