1. add definition and parent label in return
2. remove unnecessary file loading