fixed #13 implemented invitation mechanism