minor changes to the api