change return value from saveMeta
add test for ttl