workaround to set cache path when called via static methods