move state && dbx keys to res