improvement api calls to backend server