fixed server call so it now actually calls the server