working on openInvite