#328: added code to check the version and send this to the api