rearranging to json commands completed