FIX: add_keyvalue() for newstate and num list