moved compute ranking to make it accessible on the server.