add some references
switch from Hashtbl to Map for the global LF context