add loki libraries modified by myself