implementing some API calls for repositories