code modifications. add nodemanager.