remove representation registration from the api, and move to a standard set of error handling