fixed problems to api