added support for multiple calendars and teams

not pretty yet but functional and fixed my problem :-)