refactor entity to ticket
add root node back