added referee stuff
added analytics