add some external functions to call, fix the authIdx update name collision problem