preproccess node hook