just adding a little testing code to compare with spinglass server results.