refactors provider to server data on get request