add token hook into eggdocuments for entry_points