some changes to api