version v12 of the HaMStR script