updated code to work with new ncIdv.jar