changed GetFolder to a more generic GetObject method.