Add mod load log, and fix bug in API