first working version of invite joining