api for hierarchy & node