some fixes to api calls on website