refactor nodes ino directories that match there ideas