set private to all methods that should have it in RestAPIService