some code for the new GA plugin (with a lot of errors)