work in progress, adding invite request processing and some helper classes