pass block from invite_resource to invite!