add free node and debug