modify get tree node codes
complete distribute resource