fixing error caused by reordering of resets
altering the way that NCX is called
Applying plentiful fixes to NCX after tests