#fix - sort out iife