more testing and bug fixing for the nthderiv branch