pass dir var