defined $folder, to be defined for all execution paths