added #byId API call and #update