added dynamic multi-tenancy snippet