small changes to api