better api for invitation ready
improved invitation api, resolved corner case in invitation flow