ensure hash is created, values saved