added rest of API functions, onto json instances