add nvram_dump & fix warnings