add check safety function and a on node created callback