added synonym lookup in insert_from_file function