was using url and not local file