rmv debugging code