add functions to visualize NVM file