code refactor towards next release which will have nerd-core separated from the api