move nd_functions to root folder