small fix to do_key, change config param to ...