node explorer code moving to func