make some invite function work.