add nvm initialization