new join and leave api requests, fix minor things