modifications to the api