pass fabric to IIFE